# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI

# set(OpenCV_DIR OpenCVConfig.cmake的文件路径) #告诉opencv库在哪
set(OpenCV_DIR /usr/local/share/OpenCV)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRSD}) # 包含opencv库的头文件
list(APPEND ALL_TARGET_LIBRARIES ${OpenCV_LIBS})